<template>
	<view>
		<text @click="login">点我登录</text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				params:{
					userName:'ceshi',
					password:'123qwe'
				}
			}
		},
		methods: {
			login(){
				this.api.login(this.params).then((res)=>{
					uni.showLoading()
					console.log(res)
				})
			}
		}
	}
</script>

<style>

</style>
